package com.example.myblogserver.mapper;

import com.example.myblogserver.model.Comments;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface CommentsMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Comments row);

    Comments selectByPrimaryKey(Long id);

    List<Comments> selectAll();

    List<Comments> getCommentsByArticleId(Long articleId);

    int updateByPrimaryKey(Comments row);
}